﻿#include"Test.h"
#include"XString.h"
void XStringTest()
{
	XString* str = XString_init();
	XString_append(str, " ");
	XString_clear(str);
	//XString_append(str, "  666\r\n");
	//printf("字符数量%d\n", XString_size(str));
	XString_assign(str, "草泥马");
	printf("字符数量%d\n", XString_size(str));
	XString_append(str, "你好呀");

	XString_erase(str, 3, 3);
	printf("字符数量%d\n", XString_size(str));
	//XString_erase(str, 0, 4);
	printf("%s", XString_data(str));
}